class User {
	
	String name
	static hasMany = [messages: ChatLog]
	ChatLog lastLog
	
	static constraints = {
		name(unique: true)
		lastLog(nullable: true)
	}
}
